package com.sls.nzdapplication.model;

import com.alibaba.fastjson.JSONObject;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;

@Entity
public class WellSection {

    @Id
    private String id;

    private Date createTime;

    private String createBy;

    private Date modifyTime;

    private String modifyBy;

    private String name;

    private String direction;

    private String cableWellIdx;

    private String remark;

    public JSONObject toJson(){
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id",this.id);
        jsonObject.put("createTime",this.createTime);
        jsonObject.put("createBy",this.createBy);
        jsonObject.put("modifyTime",this.modifyTime);
        jsonObject.put("modifyBy",this.modifyBy);
        jsonObject.put("name",this.name);
        jsonObject.put("direction",this.direction);
        jsonObject.put("remark",this.remark);
        jsonObject.put("CableWellIdx",this.cableWellIdx);
        return jsonObject;
    }

    @Generated(hash = 389694489)
    public WellSection(String id, Date createTime, String createBy, Date modifyTime,
            String modifyBy, String name, String direction, String cableWellIdx,
            String remark) {
        this.id = id;
        this.createTime = createTime;
        this.createBy = createBy;
        this.modifyTime = modifyTime;
        this.modifyBy = modifyBy;
        this.name = name;
        this.direction = direction;
        this.cableWellIdx = cableWellIdx;
        this.remark = remark;
    }

    @Generated(hash = 1584261953)
    public WellSection() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return this.createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getModifyTime() {
        return this.modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyBy() {
        return this.modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirection() {
        return this.direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getCableWellIdx() {
        return this.cableWellIdx;
    }

    public void setCableWellIdx(String cableWellIdx) {
        this.cableWellIdx = cableWellIdx;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
